package wwl.lsf;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@Controller
public class HelloController {

  @GetMapping("wwl")
  public String hello() {
    return "hello";
  }

  @RequestMapping("/wwlUp")
  public void upload(@RequestPart("wwlfile") MultipartFile wwldddfile) {
    System.out.println("上传文件");
  }
}
